FROM openjdk:8-jre
MAINTAINER xufeng

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone

VOLUME /tmp

# 复制jar到镜像
ADD server-system-1.0.jar app.jar

ENTRYPOINT ["java", "-Xmx328m", "-Djava.security.egd=file:/pro/./urandom", "-jar", "/app.jar"]

EXPOSE 10010



